<?php

require_once './include/common.inc.php';

$page_title = 'jans2en furniture - Collection';
$postiondiv= GetPositionLink(null,null,"collections.php","Collection","collectionid",&$vNull);
$baner_img='<div class="bigtitle">Collection</div>';
$toUrl = 'product_photo_list.php?collectionid=%d';
if ($jansen_type > 0 && $jansen_uid > 0) 
{	
	$toUrl = 'product_list.php?collectionid=%d';
}


$category_list = GetCategoryTable($_collection,$toUrl,0,null,0,&$vNull);

$ViewAllUrl = sprintf($toUrl,0).'&viewall=1';

// -------------- guideͼƬ start ----------------------------------------
$pic_ary = getSystemValue("");
$img1 = $pic_ary["picture_other_collection1en"];
$img2 = $pic_ary["picture_other_collection2en"];

if (trim($img1) == "" || !file_exists("./zh/attachments/system/" . $img1)) {
	$img1 = '<img src="./zh/attachments/no.gif" alt="" width="297" height="292"/>';
} else {
	$wh = "";
	$imgSize=getimagesize("./zh/attachments/system/".$img1);
	if($imgSize[0] > 370) $wh .= " width='370'";
	if($imgSize[1] > 370) $wh .= " height='370'";
	$img1 = '<img src="./zh/attachments/system/'.$img1.'"'.$wh.' alt=""/>';
}
if (trim($img2) == "" || !file_exists("./zh/attachments/system/" . $img2)) {
	$img2 = '<img src="./zh/attachments/no.gif" alt="" width="297" height="292"/>';
} else {
	$wh = "";
	$imgSize=getimagesize("./zh/attachments/system/".$img2);
	if($imgSize[0] > 370) $wh .= " width='370'";
	if($imgSize[1] > 370) $wh .= " height='370'";
	$img2 = '<img src="./zh/attachments/system/'.$img2.'"'.$wh.' alt=""/>';
}

// -------------- guideͼƬ end ----------------------------------------

require_once PrintEot('header3');
require_once PrintEot('collections');
require_once PrintEot('footer');

?>